<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>招募城市信息</title>
	</head>
	<body>
		<html:form action="/skoru/town.do" method="POST">
			<input type="hidden" name="method" class="method" value="save" />
			<dict:dict var="skoruTownTypeList" type="skoruTownType" />
			<html:hidden property="id" />
			<table class="table-layout">
				<tr class="tr-odd">
					<td class="td-label">省</td>
					<td>
				  		<div id="dropContainer_0">
						<html:hidden property="provinceId" />
						<select id="drop_0"></select>
						</div>
					</td>
				</tr>
				<tr class="tr-even">
					<td class="td-label">市</td>
					<td>
				  		<div id="dropContainer_1">
						<html:hidden property="cityId" />
						<select id="drop_1"></select>
						</div>
					</td>
				</tr>
				<tr class="tr-odd">
					<td class="td-label">区</td>
					<td>
				  		<div id="dropContainer_2">
						<html:hidden property="districtId" />
						<select id="drop_2"></select>
						</div>
					</td>
				</tr>
				<tr class="tr-even">
					<td class="td-label">网络形态</td>
					<td>
					<logic:iterate id="entry" name="skoruTownTypeList">
						<html:radio idName="entry" property="typeCode" value="code" /><c:out value="${entry.dictName}" /> &nbsp;
					</logic:iterate>
					</td>
				</tr>
				<tr class="tr-odd">
					<td class="td-label">计划年份</td>
					<td><html:text property="planAge" /></td>
				</tr>
				<tr class="tr-even">
					<td class="td-label">计划数量</td>
					<td><html:text property="planedQuantity" /></td>
				</tr>
			</table>
			<br />
			<div class="center-opertion">
				<html:submit styleClass="button">提交</html:submit>
				<html:cancel styleClass="button">取消</html:cancel>
			</div>
		</html:form>
	<script type="text/javascript">
		var defaultOption = '<option value="0">请选择</option>';
 		var codeElementName = ["provinceId","cityId","districtId"];
		var dropDownData = eval('('+'<%=pageContext.getServletContext().getAttribute("pcdJson")%>'+')');
		showDropDown(dropDownData,codeElementName,defaultOption);
	</script>
	</body>
</html>